<script type="text/javascript">
function signin()
{
var un=/^[a-zA-Z0-9.\-_$@*!]{3,30}$/;
var pas=/^(?=.*[0-9])(?=.*[!@#$%^&*])[a-zA-Z0-9!@#$%^&*]{6,16}$/;

x1=document.sf.userName.value;
x2=document.sf.password.value;

if(!un.test(x1))
{
 alert("invalid username");
 document.sf.uname.value="";
 document.sf.uname.focus();
 return false;
}
if(!pas.test(x2))
{
 alert("invalid password");
 document.sf.password.value="";
 document.sf.password.focus();
 return false;
}

}

function forgetpassword(){
	
	 alert("contact management!!!");

}
</script>

<link rel="stylesheet" type="text/css" href="css/structure.css">



<div>
	<p style="color:red; margin-top:50px; margin-left:200px;">${errorMessage}</p>
	<form class="box login" name="sf" method="post" action="adminportal">
			<label>Admin Login</label> 
			<input type="text" name="userName" tabindex="1"
				placeholder="user name" required> <label><a
				href="#" class="rLink" tabindex="5" onclick="return forgetpassword()">Forget your password?</a></label>
			<input type="password" name="password" tabindex="2" required placeholder="password" required>
			<input type="submit" class="btnLogin" value="Login"
				tabindex="4">
	</form>
</div>

